<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%
	Calendar calendar = Calendar.getInstance(); 
	SimpleDateFormat sdf =  new SimpleDateFormat("yyyy-MM-dd");
	String str = sdf.format(calendar.getTime());
	String month = str.substring(0, 7);
%>
<!DOCTYPE html>
<html lang="en">
<head>
	<style>
		.validator{
			top:10px !important;
		}
		.space{
			width:90%;
		}
	</style>
</head>
<body>
	<div class="page-head">
   		<div class="page-title">
			<h1>
			权限管理
			</h1>
		</div>
   	</div>
   	<div class="row">
    		<div class="col-md-12">
    			<div class="portlet light portlet-fit bordered">
    				<div class="portlet-body">
    					<div class="dataTables_wrapper no-footer">
 	    					<div class="row">
	    						<div class="col-md-2">
	    							<label class="control-label">
	    								<b>查询条件</b>
	    							</label>
	    						</div>
	    					</div> 
 	    					<div class="row">
	    						<div class="col-md-10">
		    						<form id="searchform" class="form-horizontal" role="form">
		    							<div class="row">
                                            <div class="col-md-3">
					                            <div class="form-group">
					                            	<label class="control-label col-md-4">工号</label>
					                            	<div class="col-md-8">
					                            		<input id="emp_id" name="emp_id"  class="form-control" />
					                            	</div>
					                                
					                            </div>	
                                            </div>
		    							</div>
		    						</form>	    							
	    						</div>
	    						<div class="col-md-2">
		   					 	 		<div class="btn-group btn-group-devided">
		   					 	 		<button id="btnAdd" class="btn btn-sm sbold">新增</button>
	    								<button id="btnSearch" class="btn btn-sm sbold">查询</button>
	    								</div>
			                     </div>
	    					</div> 
	
				    		<div class="table"> 
                                   
                                <table class="table table-striped table-hover table-bordered dataTable no-footer" id="performanceMaintainMonlist" role="grid" aria-describedby="sample_editable_1_info">
                            		    		
			                        <thead>
                                            <tr role="row">
                                            <th>工号</th>
                                            <th>姓名</th>
                                            <th>授权站点</th> 
                                            <th>操作</th> 
                                            </tr>
                                    </thead>
			                        
			                        
			                        <tbody>                            
			                        </tbody>
		                  		</table> 
				    		</div>
						<%@ include file="../../inc/tablefooter.jsp"%>
    					</div>
    				</div>
    			</div>
    		</div>
    	</div>
    	<script src="../../assets/views/script/select.js" type="text/javascript"></script>
    	<script src="../../assets/views/script/Permissions.js" type="text/javascript"></script>
		
		
		<div id="permissionsAdd" class="modal fade bs-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		    <div class="modal-dialog modal-lg">
		        <div class="modal-content">
		            <div class="modal-header">
		                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
		                <h4 class="modal-title">
		                    <i class="icon-pencil"></i>
		                    <span id="lblAddTitle" style="font-weight:bold">添加数据</span>
		                </h4>
		            </div>
	                <div class="modal-body">
	                	<form id="basicform" class="form-horizontal form-bordered form-row-strippe" action="" data-toggle="validator" enctype="multipart/form-data">
		                    <div class="row">
		                    	<div class="col-md-6">
		                    		
		                           
		                            <div class="form-group">
		                                <label class="control-label col-md-3">工号</label>
		                                <div class="col-md-9">
		                                    <input id="emp_id1" name="emp_id1" type="text" class="form-control" placeholder="请输入,如'C0902001' " list = "users" oninput = "getUser_name()" />
		                                </div>
		                            </div>
		                              <div class="form-group">
		                                <label class="control-label col-md-3">厂别</label>
		                                <div class="col-md-9">
		                                   <select id="scope1" name="scope1"  class="form-control">
					                            			<option ></option>
					                            			<option value="24">M1制造部</option>
					                            			<option value="25">M2制造部</option>
					                            			<option value="38">M1工程部</option>
					                            			<option value="39">M2工程部</option>
					                            		</select>
		                                </div>
		                                
		                            </div>
		                           
		                    	</div>
		                    	<div class="col-md-6">
		                           <div class="form-group">
		                                <label class="control-label col-md-3">姓名</label>
		                                <div class="col-md-9">
		                                     <input id="emp_name1" name="emp_name1" type="text" class="form-control" placeholder="请输入,如'张三'" readonly />
		                                </div>
		                            </div>
		                            <div class="form-group">
		                                <label class="control-label col-md-3">站点</label>
		                                <div class="col-md-9">
		                                	<select id="ope_id_add" name="ope_id_add" class="selectpicker show-tick form-control" multiple data-live-search="false"></select>
		                                </div>
		                            </div>
		                    	</div>	
		                    	                    
		                    </div>
	                    </form>
	                    <datalist id = "users" >
	                    </datalist>
	                </div>
	                <div class="modal-footer bg-info">
	                    <input type="hidden" id="depatmentId" name="depatmentId" />
	                    <button class="btn btn-outline dark" data-dismiss="modal" type="button" id="CancelDept">取消</button>
						<button class="btn green" type="button" id="btnAddData">确定</button>
	                </div>
		        </div>
		    </div>
		</div>




</body>
</html>